home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / SLINK'S_ / MP_HEADE / VCR.H < prev   
C/C++ Source or Header  |  1992-06-15  |  1KB  |  62 lines

  1. #pragma once
  2.  
  3. #define BASE_ICON    700
  4. #define ICON_COUNT    7
  5.  
  6. #define GO_START_ICON    700
  7. #define RW_ICON    701
  8. #define STOP_ICON 702
  9. #define PLAY_ICON    703
  10. #define FF_ICON    704
  11. #define GO_END_ICON    705
  12. #define LAST_ICON 706
  13.  
  14. #define GO_START_BUTTON    1
  15. #define RW_BUTTON    2
  16. #define STOP_BUTTON 3
  17. #define PLAY_BUTTON    4
  18. #define FF_BUTTON    5
  19. #define GO_END_BUTTON    6
  20. #define LAST_BUTTON 7
  21.  
  22. #define STATUS_BOX    7
  23. #define CLOCK_BOX    8
  24. #define TAPE_SLOT    9
  25. #define VCR_BOX        10
  26.  
  27. #define PROGRESS_1    11
  28. #define PROGRESS_2    12
  29. #define PROGRESS_3    13
  30. #define PROGRESS_4    14
  31.  
  32. enum {stopped = 0,playing,fastforward,re_wind,gotoend,gotostart};
  33.  
  34. typedef struct buttons {
  35.     Boolean button[LAST_BUTTON];
  36.     int buttonRNum[LAST_BUTTON];
  37. } Buttons;
  38.  
  39. class VCR : public Dlog {
  40.     public:
  41.         Buttons myButtons;
  42.         short vcr_mode;
  43.         
  44.         VCR(void);
  45.         ~VCR(void);
  46.         
  47.         virtual void loadResource( int number);    // loads resource and sets number
  48.         virtual int HandleDialogItem(int itemHit, Point thePoint, int thePart);
  49.         virtual void RedrawDialog(void);
  50.         virtual void RedrawButtons(void);
  51.         virtual void ButtonsAndValues(int itemHit);
  52.         virtual void RedrawStatus(void);
  53.         virtual void RedrawTime(void);
  54.         virtual void UpdateProgress(void);
  55.         virtual void DrawAllProgress(int color);
  56.         virtual void ClearAllButtons(void);
  57.     
  58.     private:
  59.         virtual void Draw2Rects2Colors(Rect r1, int color1, Rect r2, int color2);
  60.  
  61.  
  62. };